<?php
/**
 * @TABLE "user"
 * @JOIN_TO "id > blacklist_word.user_id"
 * @JOIN_TO "id > category.user_id"
 * @JOIN_TO "id > content.user_id"
 * @JOIN_TO "id > content_comment.user_id"
 * @JOIN_TO "id > content_favorite.user_id"
 * @JOIN_TO "id > content_rating.user_id"
 * @JOIN_TO "id > counter_view.user_id"
 * @JOIN_TO "id > group.user_id"
 * @JOIN_TO "id > group_content.user_id"
 * @JOIN_TO "id > group_content_comment.user_id"
 * @JOIN_TO "id > group_member.user_id"
 * @JOIN_TO "id > group_member.user_id_invitation"
 * @JOIN_TO "id > landing.user_id"
 * @JOIN_TO "id > likes_user.user_id_liked"
 * @JOIN_TO "id > notification.user_id"
 * @JOIN_TO "id > pet.user_id"
 * @JOIN_TO "id > pet_featured.user_id"
 * @JOIN_TO "id > pet_like.user_id"
 * @JOIN_FROM "lang_id < lang.id"
 * @JOIN_TO "id > user_extra.user_id"
 * @JOIN_TO "id > user_friend.user_id_to"
 * @JOIN_TO "id > user_friend.user_id_from"
 * @JOIN_TO "id > user_friend_request.user_id_to"
 * @JOIN_TO "id > user_friend_request.user_id_from"
 * @JOIN_TO "id > user_invite.user_id"
 * @JOIN_TO "id > user_message.user_from_id"
 * @JOIN_TO "id > user_message.user_to_id"
 * @JOIN_TO "id > user_mood.user_id"
 * @JOIN_TO "id > wallfeed.user_id"
 * @JOIN_TO "id > wallfeed_comment.user_id"
 */
class BaseUser extends Abstract_PluginEntityManager_Entity
{
	/**
	 * @PRIMARY
	 * @COLUMN "id"
	 * @TYPE "int"
	 * @LENGTH "10"
	 * @NOT_NULL
	 * @AUTO_INCREMENT
	 */
	public $id;

	/**
	 * @COLUMN "role"
	 * @TYPE "enum"
	 * @LENGTH "'user','admin'"
	 * @NOT_NULL
	 */
	public $role;

	/**
	 * @COLUMN "lang_id"
	 * @TYPE "tinyint"
	 * @LENGTH "3"
	 * @NOT_NULL
	 * @DEFAULT "1"
	 */
	public $lang_id;

	/**
	 * @COLUMN "geometry_id"
	 * @TYPE "int"
	 * @LENGTH "11"
	 * @NOT_NULL
	 */
	public $geometry_id;

	/**
	 * @COLUMN "email"
	 * @TYPE "varchar"
	 * @LENGTH "128"
	 * @NOT_NULL
	 */
	public $email;

	/**
	 * @COLUMN "passwd"
	 * @TYPE "varchar"
	 * @LENGTH "48"
	 * @NOT_NULL
	 */
	public $passwd;

	/**
	 * @COLUMN "first_name"
	 * @TYPE "varchar"
	 * @LENGTH "64"
	 */
	public $first_name;

	/**
	 * @COLUMN "last_name"
	 * @TYPE "varchar"
	 * @LENGTH "64"
	 */
	public $last_name;

	/**
	 * @COLUMN "user_name"
	 * @TYPE "varchar"
	 * @LENGTH "32"
	 */
	public $user_name;

	/**
	 * @COLUMN "date_added"
	 * @TYPE "timestamp"
	 * @NOT_NULL
	 * @DEFAULT "CURRENT_TIMESTAMP"
	 */
	public $date_added;

	/**
	 * @COLUMN "status"
	 * @TYPE "enum"
	 * @LENGTH "'visible','to_activate','banned','deleted'"
	 * @NOT_NULL
	 * @DEFAULT "to_activate"
	 */
	public $status;

	/**
	 * @COLUMN "user_ip"
	 * @TYPE "varchar"
	 * @LENGTH "40"
	 * @NOT_NULL
	 */
	public $user_ip;

	/**
	 * @COLUMN "avatar"
	 * @TYPE "varchar"
	 * @LENGTH "64"
	 */
	public $avatar;

	/**
	 * @COLUMN "avatar_change_time"
	 * @TYPE "timestamp"
	 */
	public $avatar_change_time;
}
?>